package entity;

import java.awt.*;
import java.util.Date;

/**
 * @author lishunlin110
 * @version 1.0
 * @description: 收获地址实体类
 * @date 2021/10/16 15:38
 */
public class Address {
    int id;
    String u_id;
    Date create_time;
    String province;
    String city;
    String region;
    String street;
    String detailed_addr;
    String phone_number;

    public Address() {
    }

    public Address(int id, String province, String city, String region, String street, String detailAddress,String phoneNum) {
        this.id = id;
        this.province = province;
        this.city = city;
        this.region = region;
        this.street = street;
        this.detailed_addr = detailAddress;
        this.phone_number = phoneNum;
    }

    public Address(String u_id, Date creatTime, String province, String city, String region, String street, String detailAddress,String phoneNum) {
        this.u_id = u_id;
        this.create_time = creatTime;
        this.province = province;
        this.city = city;
        this.region = region;
        this.street = street;
        this.detailed_addr= detailAddress;
        this.phone_number= phoneNum;
    }

    public Address(int id, String u_id, Date creatTime, String province,
                   String city, String region, String street, String detailAddress) {
        this.id = id;
        this.u_id = u_id;
        this.create_time = creatTime;
        this.province = province;
        this.city = city;
        this.region = region;
        this.street = street;
        this.detailed_addr = detailAddress;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getU_id() {
        return u_id;
    }

    public void setU_id(String u_id) {
        this.u_id = u_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getDetailed_addr() {
        return detailed_addr;
    }

    public void setDetailed_addr(String detailed_addr) {
        this.detailed_addr = detailed_addr;
    }

    public String getPhone_number() {
        return phone_number;
    }

    public void setPhone_number(String phone_number) {
        this.phone_number = phone_number;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", u_id='" + u_id + '\'' +
                ", create_time=" + create_time +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", region='" + region + '\'' +
                ", street='" + street + '\'' +
                ", detailed_addr='" + detailed_addr + '\'' +
                ", phone_number='" + phone_number + '\'' +
                '}';
    }
}
